package zad1;

public class Producer extends Thread {
	private Buffer _buf;

	public void run() {
		for (int i = 0; i < 100; ++i) {
			String val = Thread.currentThread().getName() + " "
					+ (System.nanoTime()/1000)/1000000.;
			_buf.put(val);
		}
	}
	
	public Producer(Buffer b) {
		_buf = b;
	}
}

